/*
 * User: user
 * Date: 21/12/2007
 * Time: 01:25:37
 */
package org.conann.model;

import org.webbeans.model.Item;

import javax.webbeans.scope.ConversationScoped;
import java.util.ArrayList;
import static java.util.Collections.unmodifiableList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@ConversationScoped
public class ShoppingCart {

    private final Map<Item, Integer> itemsCount = new LinkedHashMap<Item, Integer>();
    private final List<Item> items = new ArrayList<Item>();

    public List<Item> getItems () {
        return unmodifiableList(items);
    }
}